﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMS.Remote;

namespace SMS.Console
{
    public class ClientRemote : MarshalByRefObject, IRemoteManager
    {
        public static event MessageEventHandler OnReceive;

        #region IRemoteManager 成员

        public void SendClientMessage(string message)
        {
            if (OnReceive != null)
            {
                OnReceive(message);
            }
        }

        public void SendServerMessage(string message)
        {
            if (OnReceive != null)
            {
                OnReceive(message);
            }
        }

        #endregion
    }
}
